//
//  PostingAuxiliary.h
//  CKApp
//
//  Created by CC on 2020/9/12.
//  Copyright © 2020 This Moment. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <Photos/Photos.h>

#define INVALID_LOCATION -999

@interface LocationMeta : NSObject
@property(nonatomic, copy) NSString* cityName;
@property(nonatomic, copy) NSString* address;
@property(nonatomic, copy) NSString* poiName;
@property(nonatomic, assign) double longitude;
@property(nonatomic, assign) double latitude;

- (BOOL)locationValid;
@end

@interface CCMediaMeta : NSObject
@property(nonatomic, copy) NSString* assetLocalIdentifier;
@property(nonatomic, strong) PHAsset* asset;
@property(nonatomic, strong) UIImage* image;
@property(nonatomic, strong) NSString* url;
@property(nonatomic, assign) double progress;

- (BOOL)hasUploaded;
@end

@interface PostingAuxiliary : NSObject
@property(nonatomic, copy) NSString* text;
@property(nonatomic, copy) NSString* activity;
@property(nonatomic, copy) NSMutableArray<NSString*>* tags;
@property(nonatomic, copy) NSMutableArray<CCMediaMeta*>* mediaMetas;
@property(nonatomic, copy) NSMutableArray<UIImage*>* images;

@property(nonatomic, strong) LocationMeta* meta;

- (NSString*)activityContent;
- (NSString*)tagsContent;
- (BOOL)mediasHasUploaded;

- (NSArray<PHAsset*>*)assets;
- (void)deleteMeta:(CCMediaMeta*)mediaMeta;

- (NSString*)poiName;
@end
